/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.*;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;

/**
 *
 * @author roniere
 */
@Entity
public class InterestParcel implements Serializable{
    
    @Id
    @SequenceGenerator(sequenceName = "seq_interest_parcel", name = "seq_interest_parcel", allocationSize = 1)
    @GeneratedValue(generator = "seq_interest_parcel", strategy = GenerationType.SEQUENCE)
    private Long id;
    
    private int qtd;
    
    @Column(scale= 9, precision=10)
    @DecimalMin( value = "0.00" )
    @Digits( fraction = 9, integer = 10 )
    private BigDecimal porc;

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getPorc() {
        return porc;
    }

    public void setPorc(BigDecimal porc) {
        this.porc = porc;
    }

    public int getQtd() {
        return qtd;
    }

    public void setQtd(int qtd) {
        this.qtd = qtd;
    }
    
    
    
    
    
}
